import request from '@/utils/request'

// 查询日排班规则列表
export function listDailyschedulerule(query) {
  return request({
    url: '/business/dailyschedulerule/list',
    method: 'get',
    params: query
  })
}

// 查询日排班规则详细
export function getDailyschedulerule(id) {
  return request({
    url: '/business/dailyschedulerule/' + id,
    method: 'get'
  })
}

// 新增日排班规则
export function addDailyschedulerule(data) {
  return request({
    url: '/business/dailyschedulerule',
    method: 'post',
    data: data
  })
}

// 修改日排班规则
export function updateDailyschedulerule(data) {
  return request({
    url: '/business/dailyschedulerule',
    method: 'put',
    data: data
  })
}

// 删除日排班规则
export function delDailyschedulerule(id) {
  return request({
    url: '/business/dailyschedulerule/' + id,
    method: 'delete'
  })
}

// 导出日排班规则
export function exportDailyschedulerule(query) {
  return request({
    url: '/business/dailyschedulerule/export',
    method: 'get',
    params: query
  })
}